<?php

use think\facade\Route;

Route::get('/', 'index/index')->middleware('verify')->ext('html');

Route::get('/index/communal', 'index/index/communal')->ext('html');
//授权登录
Route::group('login', function () {
    Route::post('/check', 'login/check');
});
//首页数据
Route::group('index', function () {
    Route::get('/getList', 'index/getList');
    Route::get('/quesList', 'index/quesList');
});

Route::group('callback', function () {
    Route::rule('/ossBackup', 'callback/ossBackup');
});


//项目管理
Route::group('pro', function () {
    Route::get('/getProList', 'pro/getProList')->middleware('verify');
    Route::get('/getPlaceList', 'pro/getPlaceList');
    Route::get('/getDistrict', 'pro/getDistrict');
    Route::get('/getRecordList', 'pro/getRecordList')->middleware('verify');
    Route::get('/getCheckDetails', 'pro/getCheckDetails')->middleware('verify');
    Route::get('/getQueList', 'pro/getQueList')->middleware('verify');
    Route::post('/pdfpost', 'pro/pdfpost')->middleware('verify');
    Route::post('/pdfshowpost', 'pro/pdfshowpost')->middleware('verify');
    Route::get('/pdfget', 'pro/pdfget');
    Route::get('/getReport', 'pro/getReport')->middleware('verify');
    
});

//提交数据
Route::group('checkListDetails', function () {
    Route::post('/postData', 'checkListDetails/postData');
    Route::post('/postPlace', 'checkListDetails/postPlace');
    Route::post('/postCheckData', 'checkListDetails/postCheckData');
    Route::post('/postReform', 'checkListDetails/postReform');
    
})->middleware('verify');

//上传
Route::group('uploads', function () {
    Route::rule('/uploadImage', 'uploads/uploadImage');
    Route::rule('/uploadSignImage', 'uploads/uploadSignImage');
});
